from django.conf.urls.defaults import *
import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
 
urlpatterns = patterns('',
    # Example:
    # (r'^kspider/', include('kspider.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
     (r'^kspider/admin/', include(admin.site.urls)),
     (r'^kspider/info/$', 'kspider.kspiderapp.views.InputUseinfo'),
     (r'^kspider/chart/$', 'kspider.kspiderapp.views.Chart'),
     (r'^kspider/report/$', 'kspider.kspiderapp.views.Report'),
      (r'^kspider/index/$', 'kspider.kspiderapp.views.index'),
#      (r'^kspider/useinfo/', 'kspider.kspiderapp.views.InputUseinfo'),
      (r'^kspider/$', 'kspider.kspiderapp.views.index'),
#      (r'^add/', 'kspider.kspiderapp.views.InputUseinfo'),

    (r'^kspider/css/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.STATIC_PATH_css}),
    (r'^kspider/js/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.STATIC_PATH_js}),
    (r'^kspider/pages/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.STATIC_PATH_templates}),
     
)
